package com.ecoolex.discount.sales.entity;

import com.ecoolex.framework.common.annotation.Description;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.springframework.lang.NonNull;

public class DiscountOrderRefundExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer offset;

    protected Integer rows;

    public DiscountOrderRefundExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public DiscountOrderRefundExample orderBy(String orderByClause) {
        this.setOrderByClause(orderByClause);
        return this;
    }

    public DiscountOrderRefundExample orderBy(String ... orderByClauses) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < orderByClauses.length; i++) {
            sb.append(orderByClauses[i]);
            if (i < orderByClauses.length - 1) {
                sb.append(" , ");
            }
        }
        this.setOrderByClause(sb.toString());
        return this;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria(this);
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
        rows = null;
        offset = null;
    }

    public static Criteria newAndCreateCriteria() {
        DiscountOrderRefundExample example = new DiscountOrderRefundExample();
        return example.createCriteria();
    }

    public DiscountOrderRefundExample when(boolean condition, IExampleWhen then) {
        if (condition) {
            then.example(this);
        }
        return this;
    }

    public DiscountOrderRefundExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
        if (condition) {
            then.example(this);
        } else {
            otherwise.example(this);
        }
        return this;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return this.offset;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public Integer getRows() {
        return this.rows;
    }

    public DiscountOrderRefundExample limit(Integer rows) {
        this.rows = rows;
        return this;
    }

    public DiscountOrderRefundExample limit(Integer offset, Integer rows) {
        this.offset = offset;
        this.rows = rows;
        return this;
    }

    public DiscountOrderRefundExample page(Integer page, Integer pageSize) {
        this.offset = page * pageSize;
        this.rows = pageSize;
        return this;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andRefundIdIsNull() {
            addCriterion("discountorderrefund.RefundId is null");
            return (Criteria) this;
        }

        public Criteria andRefundIdIsNotNull() {
            addCriterion("discountorderrefund.RefundId is not null");
            return (Criteria) this;
        }

        public Criteria andRefundIdEqualTo(Integer value) {
            addCriterion("discountorderrefund.RefundId =", value, "refundId");
            return (Criteria) this;
        }

        public Criteria andRefundIdEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.RefundId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRefundIdNotEqualTo(Integer value) {
            addCriterion("discountorderrefund.RefundId <>", value, "refundId");
            return (Criteria) this;
        }

        public Criteria andRefundIdNotEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.RefundId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRefundIdGreaterThan(Integer value) {
            addCriterion("discountorderrefund.RefundId >", value, "refundId");
            return (Criteria) this;
        }

        public Criteria andRefundIdGreaterThanColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.RefundId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRefundIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("discountorderrefund.RefundId >=", value, "refundId");
            return (Criteria) this;
        }

        public Criteria andRefundIdGreaterThanOrEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.RefundId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRefundIdLessThan(Integer value) {
            addCriterion("discountorderrefund.RefundId <", value, "refundId");
            return (Criteria) this;
        }

        public Criteria andRefundIdLessThanColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.RefundId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRefundIdLessThanOrEqualTo(Integer value) {
            addCriterion("discountorderrefund.RefundId <=", value, "refundId");
            return (Criteria) this;
        }

        public Criteria andRefundIdLessThanOrEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.RefundId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRefundIdIn(List<Integer> values) {
            addCriterion("discountorderrefund.RefundId in", values, "refundId");
            return (Criteria) this;
        }

        public Criteria andRefundIdNotIn(List<Integer> values) {
            addCriterion("discountorderrefund.RefundId not in", values, "refundId");
            return (Criteria) this;
        }

        public Criteria andRefundIdBetween(Integer value1, Integer value2) {
            addCriterion("discountorderrefund.RefundId between", value1, value2, "refundId");
            return (Criteria) this;
        }

        public Criteria andRefundIdNotBetween(Integer value1, Integer value2) {
            addCriterion("discountorderrefund.RefundId not between", value1, value2, "refundId");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNull() {
            addCriterion("discountorderrefund.OrderId is null");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNotNull() {
            addCriterion("discountorderrefund.OrderId is not null");
            return (Criteria) this;
        }

        public Criteria andOrderIdEqualTo(Integer value) {
            addCriterion("discountorderrefund.OrderId =", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.OrderId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderIdNotEqualTo(Integer value) {
            addCriterion("discountorderrefund.OrderId <>", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.OrderId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThan(Integer value) {
            addCriterion("discountorderrefund.OrderId >", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThanColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.OrderId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("discountorderrefund.OrderId >=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThanOrEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.OrderId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThan(Integer value) {
            addCriterion("discountorderrefund.OrderId <", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThanColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.OrderId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThanOrEqualTo(Integer value) {
            addCriterion("discountorderrefund.OrderId <=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThanOrEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.OrderId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderIdIn(List<Integer> values) {
            addCriterion("discountorderrefund.OrderId in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotIn(List<Integer> values) {
            addCriterion("discountorderrefund.OrderId not in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdBetween(Integer value1, Integer value2) {
            addCriterion("discountorderrefund.OrderId between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotBetween(Integer value1, Integer value2) {
            addCriterion("discountorderrefund.OrderId not between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andAmountIsNull() {
            addCriterion("discountorderrefund.Amount is null");
            return (Criteria) this;
        }

        public Criteria andAmountIsNotNull() {
            addCriterion("discountorderrefund.Amount is not null");
            return (Criteria) this;
        }

        public Criteria andAmountEqualTo(BigDecimal value) {
            addCriterion("discountorderrefund.Amount =", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.Amount = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAmountNotEqualTo(BigDecimal value) {
            addCriterion("discountorderrefund.Amount <>", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.Amount <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThan(BigDecimal value) {
            addCriterion("discountorderrefund.Amount >", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThanColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.Amount > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("discountorderrefund.Amount >=", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThanOrEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.Amount >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAmountLessThan(BigDecimal value) {
            addCriterion("discountorderrefund.Amount <", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountLessThanColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.Amount < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("discountorderrefund.Amount <=", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountLessThanOrEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.Amount <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAmountIn(List<BigDecimal> values) {
            addCriterion("discountorderrefund.Amount in", values, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotIn(List<BigDecimal> values) {
            addCriterion("discountorderrefund.Amount not in", values, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("discountorderrefund.Amount between", value1, value2, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("discountorderrefund.Amount not between", value1, value2, "amount");
            return (Criteria) this;
        }

        public Criteria andRefundStatusIsNull() {
            addCriterion("discountorderrefund.RefundStatus is null");
            return (Criteria) this;
        }

        public Criteria andRefundStatusIsNotNull() {
            addCriterion("discountorderrefund.RefundStatus is not null");
            return (Criteria) this;
        }

        public Criteria andRefundStatusEqualTo(String value) {
            addCriterion("discountorderrefund.RefundStatus =", value, "refundStatus");
            return (Criteria) this;
        }

        public Criteria andRefundStatusEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.RefundStatus = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRefundStatusNotEqualTo(String value) {
            addCriterion("discountorderrefund.RefundStatus <>", value, "refundStatus");
            return (Criteria) this;
        }

        public Criteria andRefundStatusNotEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.RefundStatus <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRefundStatusGreaterThan(String value) {
            addCriterion("discountorderrefund.RefundStatus >", value, "refundStatus");
            return (Criteria) this;
        }

        public Criteria andRefundStatusGreaterThanColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.RefundStatus > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRefundStatusGreaterThanOrEqualTo(String value) {
            addCriterion("discountorderrefund.RefundStatus >=", value, "refundStatus");
            return (Criteria) this;
        }

        public Criteria andRefundStatusGreaterThanOrEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.RefundStatus >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRefundStatusLessThan(String value) {
            addCriterion("discountorderrefund.RefundStatus <", value, "refundStatus");
            return (Criteria) this;
        }

        public Criteria andRefundStatusLessThanColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.RefundStatus < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRefundStatusLessThanOrEqualTo(String value) {
            addCriterion("discountorderrefund.RefundStatus <=", value, "refundStatus");
            return (Criteria) this;
        }

        public Criteria andRefundStatusLessThanOrEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.RefundStatus <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRefundStatusLike(String value) {
            addCriterion("discountorderrefund.RefundStatus like", value, "refundStatus");
            return (Criteria) this;
        }

        public Criteria andRefundStatusNotLike(String value) {
            addCriterion("discountorderrefund.RefundStatus not like", value, "refundStatus");
            return (Criteria) this;
        }

        public Criteria andRefundStatusIn(List<String> values) {
            addCriterion("discountorderrefund.RefundStatus in", values, "refundStatus");
            return (Criteria) this;
        }

        public Criteria andRefundStatusNotIn(List<String> values) {
            addCriterion("discountorderrefund.RefundStatus not in", values, "refundStatus");
            return (Criteria) this;
        }

        public Criteria andRefundStatusBetween(String value1, String value2) {
            addCriterion("discountorderrefund.RefundStatus between", value1, value2, "refundStatus");
            return (Criteria) this;
        }

        public Criteria andRefundStatusNotBetween(String value1, String value2) {
            addCriterion("discountorderrefund.RefundStatus not between", value1, value2, "refundStatus");
            return (Criteria) this;
        }

        public Criteria andCardUsedIsNull() {
            addCriterion("discountorderrefund.CardUsed is null");
            return (Criteria) this;
        }

        public Criteria andCardUsedIsNotNull() {
            addCriterion("discountorderrefund.CardUsed is not null");
            return (Criteria) this;
        }

        public Criteria andCardUsedEqualTo(Boolean value) {
            addCriterion("discountorderrefund.CardUsed =", value, "cardUsed");
            return (Criteria) this;
        }

        public Criteria andCardUsedEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.CardUsed = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardUsedNotEqualTo(Boolean value) {
            addCriterion("discountorderrefund.CardUsed <>", value, "cardUsed");
            return (Criteria) this;
        }

        public Criteria andCardUsedNotEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.CardUsed <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardUsedGreaterThan(Boolean value) {
            addCriterion("discountorderrefund.CardUsed >", value, "cardUsed");
            return (Criteria) this;
        }

        public Criteria andCardUsedGreaterThanColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.CardUsed > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardUsedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("discountorderrefund.CardUsed >=", value, "cardUsed");
            return (Criteria) this;
        }

        public Criteria andCardUsedGreaterThanOrEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.CardUsed >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardUsedLessThan(Boolean value) {
            addCriterion("discountorderrefund.CardUsed <", value, "cardUsed");
            return (Criteria) this;
        }

        public Criteria andCardUsedLessThanColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.CardUsed < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardUsedLessThanOrEqualTo(Boolean value) {
            addCriterion("discountorderrefund.CardUsed <=", value, "cardUsed");
            return (Criteria) this;
        }

        public Criteria andCardUsedLessThanOrEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.CardUsed <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardUsedIn(List<Boolean> values) {
            addCriterion("discountorderrefund.CardUsed in", values, "cardUsed");
            return (Criteria) this;
        }

        public Criteria andCardUsedNotIn(List<Boolean> values) {
            addCriterion("discountorderrefund.CardUsed not in", values, "cardUsed");
            return (Criteria) this;
        }

        public Criteria andCardUsedBetween(Boolean value1, Boolean value2) {
            addCriterion("discountorderrefund.CardUsed between", value1, value2, "cardUsed");
            return (Criteria) this;
        }

        public Criteria andCardUsedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("discountorderrefund.CardUsed not between", value1, value2, "cardUsed");
            return (Criteria) this;
        }

        public Criteria andReasonTypeIsNull() {
            addCriterion("discountorderrefund.ReasonType is null");
            return (Criteria) this;
        }

        public Criteria andReasonTypeIsNotNull() {
            addCriterion("discountorderrefund.ReasonType is not null");
            return (Criteria) this;
        }

        public Criteria andReasonTypeEqualTo(String value) {
            addCriterion("discountorderrefund.ReasonType =", value, "reasonType");
            return (Criteria) this;
        }

        public Criteria andReasonTypeEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.ReasonType = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andReasonTypeNotEqualTo(String value) {
            addCriterion("discountorderrefund.ReasonType <>", value, "reasonType");
            return (Criteria) this;
        }

        public Criteria andReasonTypeNotEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.ReasonType <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andReasonTypeGreaterThan(String value) {
            addCriterion("discountorderrefund.ReasonType >", value, "reasonType");
            return (Criteria) this;
        }

        public Criteria andReasonTypeGreaterThanColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.ReasonType > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andReasonTypeGreaterThanOrEqualTo(String value) {
            addCriterion("discountorderrefund.ReasonType >=", value, "reasonType");
            return (Criteria) this;
        }

        public Criteria andReasonTypeGreaterThanOrEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.ReasonType >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andReasonTypeLessThan(String value) {
            addCriterion("discountorderrefund.ReasonType <", value, "reasonType");
            return (Criteria) this;
        }

        public Criteria andReasonTypeLessThanColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.ReasonType < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andReasonTypeLessThanOrEqualTo(String value) {
            addCriterion("discountorderrefund.ReasonType <=", value, "reasonType");
            return (Criteria) this;
        }

        public Criteria andReasonTypeLessThanOrEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.ReasonType <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andReasonTypeLike(String value) {
            addCriterion("discountorderrefund.ReasonType like", value, "reasonType");
            return (Criteria) this;
        }

        public Criteria andReasonTypeNotLike(String value) {
            addCriterion("discountorderrefund.ReasonType not like", value, "reasonType");
            return (Criteria) this;
        }

        public Criteria andReasonTypeIn(List<String> values) {
            addCriterion("discountorderrefund.ReasonType in", values, "reasonType");
            return (Criteria) this;
        }

        public Criteria andReasonTypeNotIn(List<String> values) {
            addCriterion("discountorderrefund.ReasonType not in", values, "reasonType");
            return (Criteria) this;
        }

        public Criteria andReasonTypeBetween(String value1, String value2) {
            addCriterion("discountorderrefund.ReasonType between", value1, value2, "reasonType");
            return (Criteria) this;
        }

        public Criteria andReasonTypeNotBetween(String value1, String value2) {
            addCriterion("discountorderrefund.ReasonType not between", value1, value2, "reasonType");
            return (Criteria) this;
        }

        public Criteria andReasonCommentsIsNull() {
            addCriterion("discountorderrefund.ReasonComments is null");
            return (Criteria) this;
        }

        public Criteria andReasonCommentsIsNotNull() {
            addCriterion("discountorderrefund.ReasonComments is not null");
            return (Criteria) this;
        }

        public Criteria andReasonCommentsEqualTo(String value) {
            addCriterion("discountorderrefund.ReasonComments =", value, "reasonComments");
            return (Criteria) this;
        }

        public Criteria andReasonCommentsEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.ReasonComments = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andReasonCommentsNotEqualTo(String value) {
            addCriterion("discountorderrefund.ReasonComments <>", value, "reasonComments");
            return (Criteria) this;
        }

        public Criteria andReasonCommentsNotEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.ReasonComments <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andReasonCommentsGreaterThan(String value) {
            addCriterion("discountorderrefund.ReasonComments >", value, "reasonComments");
            return (Criteria) this;
        }

        public Criteria andReasonCommentsGreaterThanColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.ReasonComments > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andReasonCommentsGreaterThanOrEqualTo(String value) {
            addCriterion("discountorderrefund.ReasonComments >=", value, "reasonComments");
            return (Criteria) this;
        }

        public Criteria andReasonCommentsGreaterThanOrEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.ReasonComments >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andReasonCommentsLessThan(String value) {
            addCriterion("discountorderrefund.ReasonComments <", value, "reasonComments");
            return (Criteria) this;
        }

        public Criteria andReasonCommentsLessThanColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.ReasonComments < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andReasonCommentsLessThanOrEqualTo(String value) {
            addCriterion("discountorderrefund.ReasonComments <=", value, "reasonComments");
            return (Criteria) this;
        }

        public Criteria andReasonCommentsLessThanOrEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.ReasonComments <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andReasonCommentsLike(String value) {
            addCriterion("discountorderrefund.ReasonComments like", value, "reasonComments");
            return (Criteria) this;
        }

        public Criteria andReasonCommentsNotLike(String value) {
            addCriterion("discountorderrefund.ReasonComments not like", value, "reasonComments");
            return (Criteria) this;
        }

        public Criteria andReasonCommentsIn(List<String> values) {
            addCriterion("discountorderrefund.ReasonComments in", values, "reasonComments");
            return (Criteria) this;
        }

        public Criteria andReasonCommentsNotIn(List<String> values) {
            addCriterion("discountorderrefund.ReasonComments not in", values, "reasonComments");
            return (Criteria) this;
        }

        public Criteria andReasonCommentsBetween(String value1, String value2) {
            addCriterion("discountorderrefund.ReasonComments between", value1, value2, "reasonComments");
            return (Criteria) this;
        }

        public Criteria andReasonCommentsNotBetween(String value1, String value2) {
            addCriterion("discountorderrefund.ReasonComments not between", value1, value2, "reasonComments");
            return (Criteria) this;
        }

        public Criteria andContactPhoneIsNull() {
            addCriterion("discountorderrefund.ContactPhone is null");
            return (Criteria) this;
        }

        public Criteria andContactPhoneIsNotNull() {
            addCriterion("discountorderrefund.ContactPhone is not null");
            return (Criteria) this;
        }

        public Criteria andContactPhoneEqualTo(String value) {
            addCriterion("discountorderrefund.ContactPhone =", value, "contactPhone");
            return (Criteria) this;
        }

        public Criteria andContactPhoneEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.ContactPhone = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andContactPhoneNotEqualTo(String value) {
            addCriterion("discountorderrefund.ContactPhone <>", value, "contactPhone");
            return (Criteria) this;
        }

        public Criteria andContactPhoneNotEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.ContactPhone <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andContactPhoneGreaterThan(String value) {
            addCriterion("discountorderrefund.ContactPhone >", value, "contactPhone");
            return (Criteria) this;
        }

        public Criteria andContactPhoneGreaterThanColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.ContactPhone > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andContactPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("discountorderrefund.ContactPhone >=", value, "contactPhone");
            return (Criteria) this;
        }

        public Criteria andContactPhoneGreaterThanOrEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.ContactPhone >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andContactPhoneLessThan(String value) {
            addCriterion("discountorderrefund.ContactPhone <", value, "contactPhone");
            return (Criteria) this;
        }

        public Criteria andContactPhoneLessThanColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.ContactPhone < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andContactPhoneLessThanOrEqualTo(String value) {
            addCriterion("discountorderrefund.ContactPhone <=", value, "contactPhone");
            return (Criteria) this;
        }

        public Criteria andContactPhoneLessThanOrEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.ContactPhone <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andContactPhoneLike(String value) {
            addCriterion("discountorderrefund.ContactPhone like", value, "contactPhone");
            return (Criteria) this;
        }

        public Criteria andContactPhoneNotLike(String value) {
            addCriterion("discountorderrefund.ContactPhone not like", value, "contactPhone");
            return (Criteria) this;
        }

        public Criteria andContactPhoneIn(List<String> values) {
            addCriterion("discountorderrefund.ContactPhone in", values, "contactPhone");
            return (Criteria) this;
        }

        public Criteria andContactPhoneNotIn(List<String> values) {
            addCriterion("discountorderrefund.ContactPhone not in", values, "contactPhone");
            return (Criteria) this;
        }

        public Criteria andContactPhoneBetween(String value1, String value2) {
            addCriterion("discountorderrefund.ContactPhone between", value1, value2, "contactPhone");
            return (Criteria) this;
        }

        public Criteria andContactPhoneNotBetween(String value1, String value2) {
            addCriterion("discountorderrefund.ContactPhone not between", value1, value2, "contactPhone");
            return (Criteria) this;
        }

        public Criteria andCustomerServiceReplyIsNull() {
            addCriterion("discountorderrefund.CustomerServiceReply is null");
            return (Criteria) this;
        }

        public Criteria andCustomerServiceReplyIsNotNull() {
            addCriterion("discountorderrefund.CustomerServiceReply is not null");
            return (Criteria) this;
        }

        public Criteria andCustomerServiceReplyEqualTo(String value) {
            addCriterion("discountorderrefund.CustomerServiceReply =", value, "customerServiceReply");
            return (Criteria) this;
        }

        public Criteria andCustomerServiceReplyEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.CustomerServiceReply = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCustomerServiceReplyNotEqualTo(String value) {
            addCriterion("discountorderrefund.CustomerServiceReply <>", value, "customerServiceReply");
            return (Criteria) this;
        }

        public Criteria andCustomerServiceReplyNotEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.CustomerServiceReply <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCustomerServiceReplyGreaterThan(String value) {
            addCriterion("discountorderrefund.CustomerServiceReply >", value, "customerServiceReply");
            return (Criteria) this;
        }

        public Criteria andCustomerServiceReplyGreaterThanColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.CustomerServiceReply > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCustomerServiceReplyGreaterThanOrEqualTo(String value) {
            addCriterion("discountorderrefund.CustomerServiceReply >=", value, "customerServiceReply");
            return (Criteria) this;
        }

        public Criteria andCustomerServiceReplyGreaterThanOrEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.CustomerServiceReply >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCustomerServiceReplyLessThan(String value) {
            addCriterion("discountorderrefund.CustomerServiceReply <", value, "customerServiceReply");
            return (Criteria) this;
        }

        public Criteria andCustomerServiceReplyLessThanColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.CustomerServiceReply < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCustomerServiceReplyLessThanOrEqualTo(String value) {
            addCriterion("discountorderrefund.CustomerServiceReply <=", value, "customerServiceReply");
            return (Criteria) this;
        }

        public Criteria andCustomerServiceReplyLessThanOrEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.CustomerServiceReply <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCustomerServiceReplyLike(String value) {
            addCriterion("discountorderrefund.CustomerServiceReply like", value, "customerServiceReply");
            return (Criteria) this;
        }

        public Criteria andCustomerServiceReplyNotLike(String value) {
            addCriterion("discountorderrefund.CustomerServiceReply not like", value, "customerServiceReply");
            return (Criteria) this;
        }

        public Criteria andCustomerServiceReplyIn(List<String> values) {
            addCriterion("discountorderrefund.CustomerServiceReply in", values, "customerServiceReply");
            return (Criteria) this;
        }

        public Criteria andCustomerServiceReplyNotIn(List<String> values) {
            addCriterion("discountorderrefund.CustomerServiceReply not in", values, "customerServiceReply");
            return (Criteria) this;
        }

        public Criteria andCustomerServiceReplyBetween(String value1, String value2) {
            addCriterion("discountorderrefund.CustomerServiceReply between", value1, value2, "customerServiceReply");
            return (Criteria) this;
        }

        public Criteria andCustomerServiceReplyNotBetween(String value1, String value2) {
            addCriterion("discountorderrefund.CustomerServiceReply not between", value1, value2, "customerServiceReply");
            return (Criteria) this;
        }

        public Criteria andApplyTimeIsNull() {
            addCriterion("discountorderrefund.ApplyTime is null");
            return (Criteria) this;
        }

        public Criteria andApplyTimeIsNotNull() {
            addCriterion("discountorderrefund.ApplyTime is not null");
            return (Criteria) this;
        }

        public Criteria andApplyTimeEqualTo(Date value) {
            addCriterion("discountorderrefund.ApplyTime =", value, "applyTime");
            return (Criteria) this;
        }

        public Criteria andApplyTimeEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.ApplyTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andApplyTimeNotEqualTo(Date value) {
            addCriterion("discountorderrefund.ApplyTime <>", value, "applyTime");
            return (Criteria) this;
        }

        public Criteria andApplyTimeNotEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.ApplyTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andApplyTimeGreaterThan(Date value) {
            addCriterion("discountorderrefund.ApplyTime >", value, "applyTime");
            return (Criteria) this;
        }

        public Criteria andApplyTimeGreaterThanColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.ApplyTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andApplyTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("discountorderrefund.ApplyTime >=", value, "applyTime");
            return (Criteria) this;
        }

        public Criteria andApplyTimeGreaterThanOrEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.ApplyTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andApplyTimeLessThan(Date value) {
            addCriterion("discountorderrefund.ApplyTime <", value, "applyTime");
            return (Criteria) this;
        }

        public Criteria andApplyTimeLessThanColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.ApplyTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andApplyTimeLessThanOrEqualTo(Date value) {
            addCriterion("discountorderrefund.ApplyTime <=", value, "applyTime");
            return (Criteria) this;
        }

        public Criteria andApplyTimeLessThanOrEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.ApplyTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andApplyTimeIn(List<Date> values) {
            addCriterion("discountorderrefund.ApplyTime in", values, "applyTime");
            return (Criteria) this;
        }

        public Criteria andApplyTimeNotIn(List<Date> values) {
            addCriterion("discountorderrefund.ApplyTime not in", values, "applyTime");
            return (Criteria) this;
        }

        public Criteria andApplyTimeBetween(Date value1, Date value2) {
            addCriterion("discountorderrefund.ApplyTime between", value1, value2, "applyTime");
            return (Criteria) this;
        }

        public Criteria andApplyTimeNotBetween(Date value1, Date value2) {
            addCriterion("discountorderrefund.ApplyTime not between", value1, value2, "applyTime");
            return (Criteria) this;
        }

        public Criteria andAuditTimeIsNull() {
            addCriterion("discountorderrefund.AuditTime is null");
            return (Criteria) this;
        }

        public Criteria andAuditTimeIsNotNull() {
            addCriterion("discountorderrefund.AuditTime is not null");
            return (Criteria) this;
        }

        public Criteria andAuditTimeEqualTo(Date value) {
            addCriterion("discountorderrefund.AuditTime =", value, "auditTime");
            return (Criteria) this;
        }

        public Criteria andAuditTimeEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.AuditTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAuditTimeNotEqualTo(Date value) {
            addCriterion("discountorderrefund.AuditTime <>", value, "auditTime");
            return (Criteria) this;
        }

        public Criteria andAuditTimeNotEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.AuditTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAuditTimeGreaterThan(Date value) {
            addCriterion("discountorderrefund.AuditTime >", value, "auditTime");
            return (Criteria) this;
        }

        public Criteria andAuditTimeGreaterThanColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.AuditTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAuditTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("discountorderrefund.AuditTime >=", value, "auditTime");
            return (Criteria) this;
        }

        public Criteria andAuditTimeGreaterThanOrEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.AuditTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAuditTimeLessThan(Date value) {
            addCriterion("discountorderrefund.AuditTime <", value, "auditTime");
            return (Criteria) this;
        }

        public Criteria andAuditTimeLessThanColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.AuditTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAuditTimeLessThanOrEqualTo(Date value) {
            addCriterion("discountorderrefund.AuditTime <=", value, "auditTime");
            return (Criteria) this;
        }

        public Criteria andAuditTimeLessThanOrEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.AuditTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAuditTimeIn(List<Date> values) {
            addCriterion("discountorderrefund.AuditTime in", values, "auditTime");
            return (Criteria) this;
        }

        public Criteria andAuditTimeNotIn(List<Date> values) {
            addCriterion("discountorderrefund.AuditTime not in", values, "auditTime");
            return (Criteria) this;
        }

        public Criteria andAuditTimeBetween(Date value1, Date value2) {
            addCriterion("discountorderrefund.AuditTime between", value1, value2, "auditTime");
            return (Criteria) this;
        }

        public Criteria andAuditTimeNotBetween(Date value1, Date value2) {
            addCriterion("discountorderrefund.AuditTime not between", value1, value2, "auditTime");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNull() {
            addCriterion("discountorderrefund.Deleted is null");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNotNull() {
            addCriterion("discountorderrefund.Deleted is not null");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualTo(Boolean value) {
            addCriterion("discountorderrefund.Deleted =", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.Deleted = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualTo(Boolean value) {
            addCriterion("discountorderrefund.Deleted <>", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.Deleted <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThan(Boolean value) {
            addCriterion("discountorderrefund.Deleted >", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.Deleted > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("discountorderrefund.Deleted >=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.Deleted >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThan(Boolean value) {
            addCriterion("discountorderrefund.Deleted <", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.Deleted < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualTo(Boolean value) {
            addCriterion("discountorderrefund.Deleted <=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.Deleted <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedIn(List<Boolean> values) {
            addCriterion("discountorderrefund.Deleted in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotIn(List<Boolean> values) {
            addCriterion("discountorderrefund.Deleted not in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedBetween(Boolean value1, Boolean value2) {
            addCriterion("discountorderrefund.Deleted between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("discountorderrefund.Deleted not between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNull() {
            addCriterion("discountorderrefund.`CreateUser` is null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNotNull() {
            addCriterion("discountorderrefund.`CreateUser` is not null");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualTo(String value) {
            addCriterion("discountorderrefund.`CreateUser` =", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.`CreateUser` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualTo(String value) {
            addCriterion("discountorderrefund.`CreateUser` <>", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.`CreateUser` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThan(String value) {
            addCriterion("discountorderrefund.`CreateUser` >", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.`CreateUser` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualTo(String value) {
            addCriterion("discountorderrefund.`CreateUser` >=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.`CreateUser` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThan(String value) {
            addCriterion("discountorderrefund.`CreateUser` <", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.`CreateUser` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualTo(String value) {
            addCriterion("discountorderrefund.`CreateUser` <=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.`CreateUser` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLike(String value) {
            addCriterion("discountorderrefund.`CreateUser` like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotLike(String value) {
            addCriterion("discountorderrefund.`CreateUser` not like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserIn(List<String> values) {
            addCriterion("discountorderrefund.`CreateUser` in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotIn(List<String> values) {
            addCriterion("discountorderrefund.`CreateUser` not in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserBetween(String value1, String value2) {
            addCriterion("discountorderrefund.`CreateUser` between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotBetween(String value1, String value2) {
            addCriterion("discountorderrefund.`CreateUser` not between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("discountorderrefund.CreateTime is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("discountorderrefund.CreateTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("discountorderrefund.CreateTime =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.CreateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("discountorderrefund.CreateTime <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.CreateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("discountorderrefund.CreateTime >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.CreateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("discountorderrefund.CreateTime >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.CreateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("discountorderrefund.CreateTime <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.CreateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("discountorderrefund.CreateTime <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.CreateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("discountorderrefund.CreateTime in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("discountorderrefund.CreateTime not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("discountorderrefund.CreateTime between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("discountorderrefund.CreateTime not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNull() {
            addCriterion("discountorderrefund.UpdateUser is null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNotNull() {
            addCriterion("discountorderrefund.UpdateUser is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualTo(String value) {
            addCriterion("discountorderrefund.UpdateUser =", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.UpdateUser = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualTo(String value) {
            addCriterion("discountorderrefund.UpdateUser <>", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.UpdateUser <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThan(String value) {
            addCriterion("discountorderrefund.UpdateUser >", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.UpdateUser > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualTo(String value) {
            addCriterion("discountorderrefund.UpdateUser >=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.UpdateUser >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThan(String value) {
            addCriterion("discountorderrefund.UpdateUser <", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.UpdateUser < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualTo(String value) {
            addCriterion("discountorderrefund.UpdateUser <=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.UpdateUser <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLike(String value) {
            addCriterion("discountorderrefund.UpdateUser like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotLike(String value) {
            addCriterion("discountorderrefund.UpdateUser not like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIn(List<String> values) {
            addCriterion("discountorderrefund.UpdateUser in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotIn(List<String> values) {
            addCriterion("discountorderrefund.UpdateUser not in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserBetween(String value1, String value2) {
            addCriterion("discountorderrefund.UpdateUser between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotBetween(String value1, String value2) {
            addCriterion("discountorderrefund.UpdateUser not between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("discountorderrefund.UpdateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("discountorderrefund.UpdateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("discountorderrefund.UpdateTime =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.UpdateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("discountorderrefund.UpdateTime <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.UpdateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("discountorderrefund.UpdateTime >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.UpdateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("discountorderrefund.UpdateTime >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.UpdateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("discountorderrefund.UpdateTime <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.UpdateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("discountorderrefund.UpdateTime <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualToColumn(DiscountOrderRefund.Column column) {
            addCriterion(new StringBuilder("discountorderrefund.UpdateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("discountorderrefund.UpdateTime in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("discountorderrefund.UpdateTime not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("discountorderrefund.UpdateTime between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("discountorderrefund.UpdateTime not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        private DiscountOrderRefundExample example;

        protected Criteria(DiscountOrderRefundExample example) {
            super();
            this.example = example;
        }

        public DiscountOrderRefundExample example() {
            return this.example;
        }

        @Deprecated
        public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
            if (ifAdd) {
                add.add(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then) {
            if (condition) {
                then.criteria(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
            if (condition) {
                then.criteria(this);
            } else {
                otherwise.criteria(this);
            }
            return this;
        }

        public Criteria andLogicalDeleted(boolean deleted) {
            return deleted ? andDeletedEqualTo(DiscountOrderRefund.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(DiscountOrderRefund.Deleted.IS_DELETED.value());
        }

        @Deprecated
        public interface ICriteriaAdd {
            Criteria add(Criteria add);
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }

    public interface ICriteriaWhen {
        void criteria(Criteria criteria);
    }

    public interface IExampleWhen {
        void example(com.ecoolex.discount.sales.entity.DiscountOrderRefundExample example);
    }
}